import 'package:boss/ui/widget/custom_list_title.dart';
import 'package:boss/ui/widget/sortList/sort_item_data.dart';
import 'package:flutter/material.dart';

class SortItem<T> extends StatelessWidget {
  final SortItemData<T> data;
  final Widget handle;

  const SortItem({
    Key key,
    @required this.data,
    @required this.handle,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CustomListTitle(
      title: data.title,
      trailing: handle,
    );
  }
}
